package com.nyist.diseasepreventionserver.service.impl;

import com.nyist.diseasepreventionserver.entity.Role;
import com.nyist.diseasepreventionserver.repository.RoleDAO;
import com.nyist.diseasepreventionserver.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDAO roleDAO;
    @Override
    public Role findOne(Integer roleId) {
        return roleDAO.findById(roleId).get();
    }
}
